package com.conpany.project;

public class ThreadApi {

    public static void main(String[] args) {

        ThreadGroup group = new ThreadGroup("test");
        group.setMaxPriority(7);

        Thread thread = new Thread(group, "test-thread");
        thread.setPriority(6);
        System.out.println(thread.getPriority());

    }

}
